﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    string currentAction = Model.GetType().GetProperty("Action").GetValue(Model, null).ToString();
    object[] Actions = {
                        new { Path= "Tripulacion", Title = "Tripulación"},
                        new { Path= "Carga", Title = "Flota carga"},
                        new { Path= "FlotaPasajero", Title = "Flota pasajero"},
                        new { Path= "AprobarRecursos", Title = "Aprobar"}
                        };
    %>
<ul class="tabs primary">
<% foreach (var action in Actions)
   { 
       string path = action.GetType().GetProperty("Path").GetValue(action, null).ToString();
       string title = action.GetType().GetProperty("Title").GetValue(action, null).ToString();
       %><% if (currentAction == path) {%>
<li class="active"><% }else{ %><li><%} %>
 <a href="<%:Url.Action(path, "ServiciosRecursos") %>" class=""><%=title %></a></li>
<% } %>
</ul>